#define  _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
using namespace std;

int main()
{
    string s1("i");
    string s2;

    for (int i = 0; i < s1.size(); i++)
    {
        if (i == 0)
        {
            if (s1[i] >= 'a' && s1[i] <= 'z')
            {
                s1[i] += 32;
                s2.push_back(s1[i]);
            }
            else
            {
                s2.push_back(s1[i]);
            }
        }
        else
        {
            if (s1[i] == ' ')
            {
                i++;
                if (s1[i] >= 'a' && s1[i] <= 'z')
                {
                    s1[i] += 32;
                    s2.push_back(s1[i]);
                }
                else
                { 
                    s2.push_back(s1[i]);
                }
            }
        }
    }
    
    for (auto e : s2)
    {
        cout << e;
    }
    cout << endl;
}